package com.happy.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.happy.common.annotation.Excel;
import com.happy.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 关注对象 follows
 * 
 * @author ruoyi
 * @date 2024-12-30
 */
public class Follows extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关注记录ID */
    private Long followId;

    /** 关注者用户ID */
    @Excel(name = "关注者用户ID")
    private Long followerId;

    /** 被关注者用户ID */
    @Excel(name = "被关注者用户ID")
    private Long followingId;

    /** 创建时间 */
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;

    /** 关注者用户名 */
    @Excel(name = "关注者用户名")
    private String followerName;

    /** 关注者昵称 */
    @Excel(name = "关注者昵称")
    private String followerNickName;

    /** 被关注者用户名 */
    @Excel(name = "被关注者用户名")
    private String followingName;

    /** 被关注者昵称 */
    @Excel(name = "被关注者昵称")
    private String followingNickName;

    public String getFollowerName() {
        return followerName;
    }

    public void setFollowerName(String followerName) {
        this.followerName = followerName;
    }

    public String getFollowerNickName() {
        return followerNickName;
    }

    public void setFollowerNickName(String followerNickName) {
        this.followerNickName = followerNickName;
    }

    public String getFollowingName() {
        return followingName;
    }

    public void setFollowingName(String followingName) {
        this.followingName = followingName;
    }

    public String getFollowingNickName() {
        return followingNickName;
    }

    public void setFollowingNickName(String followingNickName) {
        this.followingNickName = followingNickName;
    }

    public void setFollowId(Long followId)
    {
        this.followId = followId;
    }

    public Long getFollowId() 
    {
        return followId;
    }
    public void setFollowerId(Long followerId) 
    {
        this.followerId = followerId;
    }

    public Long getFollowerId() 
    {
        return followerId;
    }
    public void setFollowingId(Long followingId) 
    {
        this.followingId = followingId;
    }

    public Long getFollowingId() 
    {
        return followingId;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("followId", getFollowId())
            .append("followerId", getFollowerId())
            .append("followingId", getFollowingId())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
